/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.structure;

/**
 *
 * @author dell
 */
import entity.support.Obj;
import entity.support.LogIndexable;
import entity.support.Power;
import java.util.Map;
public class User extends Obj implements LogIndexable
{
//columns_______________________________________________________________________
private String password;
private String phone;
private String email;
private int usertype;
private Power power;
private int personid;
//functions_____________________________________________________________________
     //operator_________________________________________________________________
public User()
{
     
}
public User(Obj o)
{
     this.id=o.getId();
     this.name=o.getName();
     this.intime=o.getIntime();
     this.updatetime=o.getUpdatetime();
}
public User(Map<String,String> map)
{
     
}
     //getter___________________________________________________________________
public String getPassword() 
{
     return password;
}
public String getPhone() 
{
     return phone;
}
public String getEmail() 
{
     return email;
}
public int getUsertype() 
{
     return usertype;
}
public Power getPower() 
{
     return power;
}
public int getPersonid() 
{
     return personid;
}
     //setter___________________________________________________________________
public void setPassword(String password) 
{
     this.password = password;
}
public void setPhone(String phone) 
{
     this.phone = phone;
}
public void setEmail(String email) 
{
     this.email = email;
}
public void setUsertype(int usertype) 
{
     this.usertype = usertype;
}
public void setPower(Power power) 
{
     this.power = power;
}
public void setPowerInString(String power)
{
     this.power=new Power(power);
}
public void setPersonid(int personid) 
{
     this.personid = personid;
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return super.toString()+"\t"+password+"\t"+phone+"\t"+email+"\t"+usertype+"\t"
             +power+"\t"+personid;
}
}
